import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import api from "./api";
import "./components/filters";
import VueLazyload from "vue-lazyload";
import Loading from "./components/loading";
import Alert from "./components/alert";
import * as Loadings from "vue-loading-overlay";
// Import stylesheet
import "vue-loading-overlay/dist/vue-loading.css";

 
  
// Init plugin
Vue.use(Loadings,{isFullPage:false});
Vue.use(VueLazyload);
Vue.use(Loading);
Vue.use(Alert);

// or with options 也可以直接在这里设置参数
Vue.use(VueLazyload, {
  preLoad: 1.3, //预加载的宽高比
  error: "img/error.png", //图片加载失败时使用的图片源
  loading: "img/loding.gif", //图片加载的路径
  attempt: 1, //尝试加载次数
});
Vue.config.productionTip = false;
Vue.use(api);
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
